#!/bin/bash
#杀掉java进程，删除旧的war包和目录
ansible 10.10.10.26 -m script -a "update.sh"

#拷贝新的war包
ansible 10.10.10.26 -m copy -a 'src=target/virstu.war dest=/opt/tomcat8/webapps/ROOT.war'

#启动tomcat
ansible 10.10.10.26 -m shell -a 'nohup /opt/tomcat8/bin/startup.sh &'
